An Example Script
Let's take a look at a simple example to become more familiar with some of the basics of a typical script. The listing below is an example of a small script which displays a message in the VectorScript message bar, then clears the message after five seconds:
 
kGREETING = 'Hello ';
MyMessage : STRING;
The program begins with a statement which names the procedure and identifies it to the VectorScript compiler:
 
kGREETING = 'Hello ';
myMessage : STRING;
After this statement is what is known as the main program block. The main program block contains areas for declaring what data storage will be needed by the script when it is run along with an area for the source code of the script, which provides the instructions on what actions will be performed by the script:
 
kGREETING = 'Hello ';
myMessage : STRING;
The script ends with a special statement which tells the VectorScript compiler to execute the script code preceding it:
 
kGREETING = 'Hello ';
myMessage : STRING;
Even though some of the concepts behind the parts of the script may not be clear to you at this point, studying the example should give you an idea of what a script looks like and how it works. Later sections will explain the various parts of a script and their underlying concepts in greater detail.

Introduction to VectorScript : Some Background On VectorScript : An Example Script

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050